worker_processes 2;
error_log logs/error.log;
pid nginx.pid;
events {
    worker_connections 2048;
}
http {
    include mime.types;
    default_type application/octet-stream;
    sendfile on;
    keepalive_timeout 65;
    client_max_body_size 50m;
    log_format main '[$time_local] $remote_addr "$http_x_forwarded_for" $remote_port $remote_user '
        '$host $upstream_addr $upstream_status $upstream_response_time $upstream_cache_status '
        '"$request" $status $request_time $body_bytes_sent "$http_referer" "$http_user_agent" ';
    access_log logs/fastdfs.access.log main;
server {
    listen 8888;
    server_name _;
    location ~/group[1-9]/ {
        ngx_fastdfs_module;
        }
    }
}
